package com.lc.pianostudent.bean;

import java.util.List;

/**
 * Created by Administrator on 2018/8/3.
 */

public class User {

    /**
     * id : 28
     * avatar : http://app135.app.longcai.net/uploads/20180730/045d453cbf8069086579e6ce64fa88d3.jpg
     * name : 132323
     * cname : 鱼儿
     * postid : 5
     * up : 2
     * posttype : 1
     * content : 哈哈哈哈
     * picarr : [{"user_number":"28","img":"http://app135.app.longcai.net/uploads/post/20180802/5b62ca20ee458.jpg"},{"user_number":"28","img":"http://app135.app.longcai.net/uploads/post/20180802/5b62ca20ee553.jpg"},{"user_number":"28","img":"http://app135.app.longcai.net/uploads/post/20180802/5b62ca20ee668.jpg"}]
     * time : 2018年08月03日 04:08
     * commentup : true
     * comment : [{"id":4,"type":1,"userid":5,"name":"灵小光","content":"你笑啥"},{"id":13,"type":2,"userid":28,"name":"我","fromname":"灵小光","fromuserid":5,"fromid":4,"content":"有你啥事"}]
     */

    private String id;
    private String avatar;
    private String name;
    private String cname;
    private String postid;
    private String up;
    private String posttype;
    private String content;
    private String time;
    private boolean commentup;
    private List<String> picarr;
    private List<CommentBean> comment;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getPostid() {
        return postid;
    }

    public void setPostid(String postid) {
        this.postid = postid;
    }

    public String getUp() {
        return up;
    }

    public void setUp(String up) {
        this.up = up;
    }

    public String getPosttype() {
        return posttype;
    }

    public void setPosttype(String posttype) {
        this.posttype = posttype;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public boolean isCommentup() {
        return commentup;
    }

    public void setCommentup(boolean commentup) {
        this.commentup = commentup;
    }

    public List<String> getPicarr() {
        return picarr;
    }

    public void setPicarr(List<String> picarr) {
        this.picarr = picarr;
    }

    public List<CommentBean> getComment() {
        return comment;
    }

    public void setComment(List<CommentBean> comment) {
        this.comment = comment;
    }

    public static class PicarrBean {
        /**
         * user_number : 28
         * img : http://app135.app.longcai.net/uploads/post/20180802/5b62ca20ee458.jpg
         */

        private String user_number;
        private String img;

        public String getUser_number() {
            return user_number;
        }

        public void setUser_number(String user_number) {
            this.user_number = user_number;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }
    }

    public static class CommentBean {
        /**
         * id : 4
         * type : 1
         * userid : 5
         * name : 灵小光
         * content : 你笑啥
         * fromname : 灵小光
         * fromuserid : 5
         * fromid : 4
         */

        private int id;
        private int type;
        private int userid;
        private String name;
        private String content;
        private String fromname;
        private int fromuserid;
        private int fromid;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public int getType() {
            return type;
        }

        public void setType(int type) {
            this.type = type;
        }

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getFromname() {
            return fromname;
        }

        public void setFromname(String fromname) {
            this.fromname = fromname;
        }

        public int getFromuserid() {
            return fromuserid;
        }

        public void setFromuserid(int fromuserid) {
            this.fromuserid = fromuserid;
        }

        public int getFromid() {
            return fromid;
        }

        public void setFromid(int fromid) {
            this.fromid = fromid;
        }
    }
}
